package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class MoveBillQueryObject extends QueryForObject {

    private String keyword = null;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date moveTimeBegin;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date moveTimeEnd;

    public String getKeyword() {
        return keyword == null || "".equals(keyword.trim()) ? null : keyword;
    }

}
